﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfBuyScore.aspx.cs" Inherits="msBsc.WebUi.Custom.wfBuyScore" %>

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server"> 
    <title>购买积分</title>
    <link rel="shortcut icon" href="/themes/Style1/Image/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/??themes/Style1/StyleQt.css,themes/Style1/reg2.css," />  
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jBPage.js,themes/Style1/jsQt.js" type="text/javascript"></script>
    <!--head fix rgn--> 
    <script type="text/javascript">
        $(window).load(function () {

            $("#J_BtnInfoForm").click(function () {
                if (getAllValiInp()) {
                    var _jsParam = new jsonRow();
                    _jsParam.AddCell("ACTION", "REGIST_STEP2");
                    _jsParam.AddCell("J_BuyQty", $("#J_BuyQty").val());
                    ajaxComm(_jsParam);
                }
            });

            $("#J_BuyQty").keyup(function () { 
                if (!$(this).val()) { $(this).val('0'); }
                if (isNaN($(this).val())) { $(this).val('0'); }
                if ($(this).val()) {
                    var decPrice = parseFloat($("#txtScoreQty").val()).toFixed(3);
                    var iBqty = parseInt($(this).val());
                    $("#spnPayAmt").html(' ' + (decPrice * iBqty).toFixed(2) + ' 元');
                } else {
                    $("#spnPayAmt").html(' 0.00 元');
                }
            });

        });
         
           
    </script> 
</head>
<body > 
    <div id="mallPage" class="tms-page mallAct tmall-  page-not-market">
        <!-- -->
        <!--商城通用顶通-->
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderTopHtml()%>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderLogoHtml()%>

        



<div class="page lang-zh-S" style=" background-color:#fff; margin-top:10px; padding:10px;">

		 


		<div class="steps">
	<ol>
		<li class="active"><i>1</i><span class="tsl" >输入购买积分数量</span></li>
		<li ><i>2</i><span class="tsl" >在线完成支付</span></li>
		<li><i id="spncmp">3</i><span class="tsl" >获得积分</span></li>
	</ol>

	</div>
	
	<div class="content">
    <input type="hidden" value="" id="txtScoreQty" />
		<div class="form-list form-main-list" id="divInputInfo">
			<form method="post" action="#" id="J_InfoForm">
				<input type="hidden" name="action" value="reg/reg_action" />
					 
					<div class="form-group">
						<div class="form-item">
							<span class="form-label form-label-b tsl" >商城积分库存与价格</span> 
						</div>
						<div class="form-item">
							<span class="form-label tsl" >可购买数量：</span>
							<span id="spnAllowBuyQty" style="color:Blue;">0</span> 点
							 
						</div>
						
						<div class="form-item">
							<span class="form-label tsl"  >销售单价：</span>
							<span id="spnSalesPrice" style="color:Blue;">每1点积分=￥0.01元</span>
						</div>
					</div>
					<div class="form-group">
						<div class="form-item">
							<span class="form-label form-label-b tsl" >输入要购买的数量</span> 
						</div>
						<div class="form-item">
							<span class="form-label tsl" >本次购买数量</span>
							<input class="form-text" id="J_BuyQty" name="pwd" type="text"    value=""  reg-exp="^\s*$|[0-9]{1,10}$" right-msg="请填写数字"/> 
							 
						</div> 
						<div class="form-item">
							<span class="form-label tsl"  >需支付金额：</span>
							<span id="spnPayAmt" style="color:#c40000; font-weight:bold;">元</span>
						</div>
					</div>
					<div class="form-group"> 
						<div class="form-item">
							<button type="button" id="J_BtnInfoForm" class="btn btn-large tsl"  >确定转入支付页面</button> 
						</div>
					</div>
				</form>
			</div>

            

		<div class="email-sent" id="divMailSend" style="display:none;  padding:20px;">
			<h2 ><span class="tsl" >您的密码已重置！</span>&nbsp;<em><span id="spnMailNme"></span></em></h2>
			<p class="tsl"></p>
			<div class="email-sent-op">
				<input type="hidden" id="Hidden1" value="" />
				<input type="hidden" id="J_UserNumId" value="" />
				<a class="btn tsl" target="_self"  href="/c_CustUserLogin.htm?returnurl=/c_CustManager.htm" id="J_GoToEmailWeb"  >使用新密码登录</a>
				<div class="email-sent-noreceived"> 
				</div>
			</div>
			<div class="email-sent-op"> 
			</div>
			</div>


		</div>
	</div>
	
	
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetFloorHtml()%> 
    </div>

    <!-- foot script --> 
</body>
</html>
